<template>
  <view class="container">
    <view class="form-item avatar-item">
      <view class="label">头像</view>
      <image class="avatar" src="/static/images/default-avatar.png" />
    </view>
    <view class="form-item">
      <view class="label">昵称</view>
      <view class="value"><text>用户</text><text class="user-id">106047400</text></view>
    </view>
    <view class="form-item">
      <view class="label">手机号</view>
      <input class="input" type="text" placeholder="请输入手机号" v-model="phone" />
    </view>
    <view class="btn-row">
      <button class="save-btn" @click="save">保存</button>
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const phone = ref('')
function save() {
  // 保存逻辑
}
</script>

<style scoped>
.container {
  background: #fff;
  min-height: 100vh;
  padding: 0;
}
.form-item {
  display: flex;
  align-items: center;
  padding: 0 24rpx;
  height: 96rpx;
  border-bottom: 1px solid #eee;
  font-size: 30rpx;
  color: #333;
  background: #fff;
}
.avatar-item {
  height: 120rpx;
}
.label {
  flex: 0 0 140rpx;
  color: #888;
}
.value {
  flex: 1;
  text-align: right;
}
.user-id {
  font-weight: bold;
  font-size: 32rpx;
  margin-left: 4rpx;
}
.avatar {
  width: 64rpx;
  height: 64rpx;
  border-radius: 50%;
  background: #f5f5f5;
  margin-left: auto;
}
.input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  text-align: right;
  font-size: 30rpx;
  color: #333;
}
.btn-row {
  margin-top: 64rpx;
  display: flex;
  justify-content: center;
}
.save-btn {
  width: 60%;
  height: 80rpx;
  background: #2196f3;
  color: #fff;
  font-size: 32rpx;
  border: none;
  border-radius: 12rpx;
  text-align: center;
}
</style> 